import {configureStore} from '@reduxjs/toolkit'
import {cityListReducer} from '@/store/features/cityList/cityListSlice'
import {homeReducer} from '@/store/features/home/homeSlice'

const store = configureStore({
    reducer: {
        cityList: cityListReducer,
        home: homeReducer
    }
})

export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
export default store
